#!/bin/sh /etc/rc.common

START=99

CONFIG_LOG=/var/log/apache2
CONFIG_RUN=/var/run/apache2

reload() {
	apachectl -k restart
}

restart() {
	apachectl -k restart
}

start() {
	if [ ! -d "$CONFIG_LOG" ]; then
		mkdir -p -m 0777 $CONFIG_LOG
	fi
	if [ ! -d "$CONFIG_RUN" ]; then
		mkdir -p -m 0777 $CONFIG_RUN
	fi
	apachectl -k start
}

stop() {
	apachectl -k stop
}
